function Locker(){
	$.cookie("CK2312",0);
	document.body.onclick="";
}
function log(){
	$.cookie("CK2312",2);
	document.body.onclick=function(){
		Locker();
	};
	setTimeout("SetIsDone()",4000);
}

$(document).ready(function(){
  var elements2;
	elements2=document.getElementsByTagName("iframe");
	for(var i=0;i<elements2.length;i++){
		if(elements2[i].src.indexOf(':/')>-1){
			if(elements2[i].id != "passport"){
				if(document.all){
					//document.getElementById("myframe").attachEvent("onblur",dothis);
					elements2[i].onfocus=log;
	 			}else{
	 				elements2[i].contentWindow.addEventListener("blur",log,false);
	 			}
			}
		}
	}
});

function SetIsDone(){
	var a=$.cookie("CK2312");
	if(a==2){
		$.cookie("CK2312",0);
		MsgADDone();
		//G("xloader").src="http://user.uutxt.com/adscount.aspx";
		G("xloader").src = "http://user.niaoyan.com/ashx/click.aspx?sessionkey="+$.cookie("nysessionkey")+"&act=ad&id=0" + UrlSeed();
		document.body.onclick="";
		setTimeout("GetUuSessionStr()", 3000);
	}
}